package com.ljh.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ljh.pojo.Singer;
import com.ljh.pojo.User;
import com.ljh.pojo.UserBefore;
import com.ljh.pojo.admin;
import com.ljh.vo.SexVo;
import com.ljh.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService extends IService<User> {
    public UserVo findAUserById(Integer id);
    public String getOpenId(String code);
    public User userLogin(UserBefore userBefore);
    public Integer UpdatePersonInfo(@Param("user") User user);
    public User findById(Integer userId);
    public Singer findBySongId(Integer singId);

    /**
     * 通过userId来查找user
     * @param userId
     * @return
     */
    public User findUserById(Integer userId);

    public Integer UpdatePersonInfo2(@Param("user") User user);

    public void UpdatePersonPhoto(String userPhoto,Integer userId);

    public void deleteUserById(Integer userId);

    public List<SexVo> findUserSex();

    public List<admin> loginMI(String password,String username);
}
